----------------------------------
-- Area: Gustav Tunnel
-- NM: Baobhan Sith
-- @zone 212
-- @pos 206.000 10.000 76.000
-----------------------------------

require("scripts/globals/settings")

-----------------------------------
-- onMobDeath
-----------------------------------

function onMobDeath(mob,killer)	

	-- Set Baobhan Sith's Window Open Time
    local wait = math.random((4),(8)) * 3600
	SetServerVariable("[POP]Baobhan_Sith", os.time(t) + (wait /NM_TIMER_MOD)); -- 4-8 hours
	DeterMob(mob:getID(), true);

	-- Set PH back to normal, then set to respawn spawn
    local PH = GetServerVariable("[PH]Baobhan_Sith");
	SetServerVariable("[PH]Baobhan_Sith", 0);
	DeterMob(PH, false);
	GetMobByID(PH):setRespawnTime(GetMobRespawnTime(PH));

end;